﻿using System.Runtime.Serialization;

namespace ClientOverflow.DataTransferObjects
{
    /// <summary>
    /// Vote class it a DTO object, used in context of question or answer. The vote declares who is the user
    /// that voted. The vote can be up-vote or down-vote, it depends on the context. The context of the vote
    /// is by the collection in which the vote is stored. For example: <see cref="Question.UpVotes">Question.UpVotes</see>
    /// The class is decorated with [DataContract] attribute and the properties are decorated with
    /// [DataMember] attributes. Using the decorations the class is compatible as data trasnfer object
    /// in the WCF service.
    /// </summary>
    [DataContract]
    public class Vote
    {
        [DataMember]
        public User Voter { get; set; }
    }
}